/**
 * 
 */
package fr.cie.blog.services.paginator;

/**
 * @author Jee3
 * 
 */
public class Paginator {

	/**
	 * nbrByPage.
	 */
	private int nbrByPage;
	/**
	 * nbrOfPage.
	 */
	private int nbrOfPage;

	/**
	 * component.
	 */
	private String component;

	/**
	 * @param pNbrparPage
	 *            the number of publication by page
	 * @param pNbrdePage
	 *            the number of page
	 */
	public Paginator(final int pNbrparPage, final int pNbrdePage) {
		super();
		nbrByPage = pNbrparPage;
		nbrOfPage = pNbrdePage;
	}

	/**
	 * Default constructor.
	 */
	public Paginator() {
		// TODO Auto-generated constructor stub
	}

	/**
	 * @return the nbrByPage
	 */
	public final int getNbrByPage() {
		return nbrByPage;
	}

	/**
	 * @param pNbrByPage
	 *            the nbrByPage to set
	 */
	public final void setNbrByPage(final int pNbrByPage) {
		nbrByPage = pNbrByPage;
	}

	/**
	 * @return the nbrOfPage
	 */
	public final int getNbrOfPage() {
		return nbrOfPage;
	}

	/**
	 * @param pNbrOfPage
	 *            the nbrOfPage to set
	 */
	public final void setNbrOfPage(final int pNbrOfPage) {
		nbrOfPage = pNbrOfPage;
	}

	/**
	 * @return the component
	 */
	public final String getComponent() {
		return component;
	}

	/**
	 * @param pComponent
	 *            the component to set
	 */
	public final void setComponent(final String pComponent) {
		component = pComponent;
	}

	/**
	 * @return the component
	 */
	public final String setComponentToView() {
		component = "<div><pre>1 2 3 4 5</pre></div>";
		return component;
	}

}
